package org.saasplay.resource;

import lombok.Getter;
import lombok.Setter;

/**
 * 处理结果
 *
 * @author cuishifeng
 */
@Getter
@Setter
public class FeedBack {

    private int result;


    public FeedBack(ResultEnum resultEnum) {
        this.result = resultEnum.state;
    }

    public static FeedBack SUCCESS() {
        return new FeedBack(ResultEnum.SUCCESS);
    }

    public static FeedBack GameOver() {
        return new FeedBack(ResultEnum.GAME_OVER);
    }
}
